<T:ViewBase x:Class="WPFExcelReport.TVUMSV02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVRENR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVRENR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVREPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVREPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVSPLPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVSPLPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVVERTNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVVERTNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVKORRKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVKORRKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVDRUCKKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVDRUCKKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVSPERRKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVSPERRKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVPVTYP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVPVTYP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVPVVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVPVVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VUVBASISBTR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVUMSV.VUVBASISBTR}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsVUMSV,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwVUMSV}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwVUMSV, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="VUVMANDANT"
                                    Binding="{Binding Path=VUVMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVRENR"
                                    Binding="{Binding Path=VUVRENR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVRENR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVREPOS"
                                    Binding="{Binding Path=VUVREPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVREPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVSPLPOS"
                                    Binding="{Binding Path=VUVSPLPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVSPLPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVVERTNR"
                                    Binding="{Binding Path=VUVVERTNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVVERTNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVKORRKZ"
                                    Binding="{Binding Path=VUVKORRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVKORRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVDRUCKKZ"
                                    Binding="{Binding Path=VUVDRUCKKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVDRUCKKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVSPERRKZ"
                                    Binding="{Binding Path=VUVSPERRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVSPERRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVPVTYP"
                                    Binding="{Binding Path=VUVPVTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVPVTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVPVVAR"
                                    Binding="{Binding Path=VUVPVVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVPVVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVBASISBTR"
                                    Binding="{Binding Path=VUVBASISBTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVBASISBTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVSTDPV"
                                    Binding="{Binding Path=VUVSTDPV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVSTDPV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVSONDPV"
                                    Binding="{Binding Path=VUVSONDPV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVSONDPV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVERSTPV"
                                    Binding="{Binding Path=VUVERSTPV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVERSTPV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVMENGENPV"
                                    Binding="{Binding Path=VUVMENGENPV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVMENGENPV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVMEEHPV"
                                    Binding="{Binding Path=VUVMEEHPV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVMEEHPV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVPRNBTL"
                                    Binding="{Binding Path=VUVPRNBTL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVPRNBTL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVABZUG"
                                    Binding="{Binding Path=VUVABZUG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVABZUG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVVPROV"
                                    Binding="{Binding Path=VUVVPROV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVVPROV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVABRDAT"
                                    Binding="{Binding Path=VUVABRDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVABRDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVKUNDNR"
                                    Binding="{Binding Path=VUVKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVVB"
                                    Binding="{Binding Path=VUVVB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVVB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVVG"
                                    Binding="{Binding Path=VUVVG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVVG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVABRVON"
                                    Binding="{Binding Path=VUVABRVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVABRVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVABRBIS"
                                    Binding="{Binding Path=VUVABRBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVABRBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVFOBBASIS"
                                    Binding="{Binding Path=VUVFOBBASIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVFOBBASIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVANTEIL"
                                    Binding="{Binding Path=VUVANTEIL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVANTEIL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVANTSUMME"
                                    Binding="{Binding Path=VUVANTSUMME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVANTSUMME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVWOHER"
                                    Binding="{Binding Path=VUVWOHER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVWOHER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVWAEHRSL"
                                    Binding="{Binding Path=VUVWAEHRSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVWAEHRSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVKURS"
                                    Binding="{Binding Path=VUVKURS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVKURS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVBETRAG"
                                    Binding="{Binding Path=VUVBETRAG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVBETRAG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVFILLER"
                                    Binding="{Binding Path=VUVFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVAENZL"
                                    Binding="{Binding Path=VUVAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVAENB"
                                    Binding="{Binding Path=VUVAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVNEUB"
                                    Binding="{Binding Path=VUVNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVAEND"
                                    Binding="{Binding Path=VUVAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VUVNEUD"
                                    Binding="{Binding Path=VUVNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VUVNEUD}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
